{% extends "player/base.html" %}
{% load humanize %}

{% block main %}
<h2>Partido</h2>
{{match.name}} {{match.datetime}}

<h2>Jugadores (confirmaciones)</h2>
{% for m_player in match.match_players %}
	<p>
		<img class="player_profile_img" src="{{m_player.player.get_pict}}" />
		{{m_player.player}}
		{% if m_player.confirm %}
			<span class="confirm">Confirmó!</span><span>. {{m_player.confirm_date|naturalday}}</span>
		{% else %}
			<span class="no_confirm">¿Juega?</span>
			{% ifequal m_player.player request.session.current_player %}
				<span><a href="{% url match_confirm m_player.key.id %}">confirmar</a></span>
			{% else %}
				<span><a href="#">Reenviar mail</a></span>
			{% endifequal %}
		{% endif %}				
	</p>	
{% endfor %}



{% endblock %}